﻿using System.ComponentModel.DataAnnotations;

namespace Model.Entity.Ware
{
    /// <summary>
    /// 商品订单表
    /// </summary>
    public class TB_WareOrder : EntityBase_LONG
    {
        /// <summary>
        /// 编号
        /// </summary>
        [Required,MaxLength(256)]
        public string Number { get; set; }
        /// <summary>
        /// 用户Id
        /// </summary>
        [Required]
        public int UserId { get; set; }
        /// <summary>
        /// 商品Id
        /// </summary>
        [Required]
        public int WareId { get; set; }
        /// <summary>
        /// 总价
        /// </summary>
        [Required]
        public decimal TotalPrice { get; set; }
        /// <summary>
        /// 优惠的价格
        /// </summary>
        [Required]
        public decimal DiscountPrice { get; set; }
        /// <summary>
        /// 实付价格
        /// </summary>
        [Required]
        public decimal PayablePrice { get; set; }
        /// <summary>
        /// 状态类型Id
        /// </summary>
        [Required]
        public int StateTypeId { get; set; }
        /// <summary>
        /// 支付状态类型Id
        /// </summary>
        [Required]
        public int PaymentStateTypeId { get; set; }
        /// <summary>
        /// 支付时间
        /// </summary>
        public DateTime? PaymentDate { get; set; }
        /// <summary>
        /// 支付类型Id
        /// </summary>
        public int? PaymentTypeId { get; set; }
    }
}
